package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-11-05 22:50:07.872
 */
@Entity
@Table(name = "ccs_user",catalog = "ccsdb")
public class CcsUser implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "ccs_user";

    /**人员ID */
	public static final String ALIAS_CCS_UID = "ccs_uid";
    /**登陆账号 */
	public static final String ALIAS_ACCOUNT = "account";
    /**人员姓名 */
	public static final String ALIAS_UNAME = "uname";
    /**性别 */
	public static final String ALIAS_SEX = "sex";
    /**手机号 */
	public static final String ALIAS_PHONE = "phone";
    /**密码 */
	public static final String ALIAS_PASSWORD = "password";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ccs_uid", unique = true, nullable = false)
    public java.lang.Long ccsUid;
  
 	@Column(name = "account")
    public java.lang.String account;
  
 	@Column(name = "uname")
    public java.lang.String uname;
  
 	@Column(name = "sex")
    public java.lang.Long sex;
  
 	@Column(name = "phone")
    public java.lang.String phone;
  
 	@Column(name = "password")
    public java.lang.String password;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  





	public java.lang.Long getCcsUid() {
		return this.ccsUid;
	}
	
	public void setCcsUid(java.lang.Long value) {
		this.ccsUid = value;
	}

	public java.lang.String getAccount() {
		return this.account;
	}
	
	public void setAccount(java.lang.String value) {
		this.account = value;
	}

	public java.lang.String getUname() {
		return this.uname;
	}
	
	public void setUname(java.lang.String value) {
		this.uname = value;
	}

	public java.lang.Long getSex() {
		return this.sex;
	}
	
	public void setSex(java.lang.Long value) {
		this.sex = value;
	}

	public java.lang.String getPhone() {
		return this.phone;
	}
	
	public void setPhone(java.lang.String value) {
		this.phone = value;
	}

	public java.lang.String getPassword() {
		return this.password;
	}
	
	public void setPassword(java.lang.String value) {
		this.password = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}


	
	public CcsUser() {
	}
	
	public CcsUser(boolean qryflag) {
	    if(qryflag){
	    		this.ccsUid = null;
				this.account = null;
				this.uname = null;
				this.sex = null;
				this.phone = null;
				this.password = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
			    }
	}


	public CcsUser(
	    java.lang.Long inCcsUid,
	    java.lang.String inAccount,
	    java.lang.String inUname,
	    java.lang.Long inSex,
	    java.lang.String inPhone,
	    java.lang.String inPassword,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
		java.util.Date inUpdateTime
	 ) {
		super();
				this.ccsUid = inCcsUid;
				this.account = inAccount;
				this.uname = inUname;
				this.sex = inSex;
				this.phone = inPhone;
				this.password = inPassword;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
			}





}

